// home_page.dart
import 'package:flutter/material.dart';

class HomePage extends StatelessWidget {
  final String email;
  final String password;

  const HomePage({super.key, required this.email, required this.password});

  @override
  @override
  Widget build(BuildContext context) {
    try {
      return Scaffold(
        body: Container(
          decoration: const BoxDecoration(
            image: DecorationImage(
              image: AssetImage('assets/home/blueSea.png'),
              fit: BoxFit.cover,
            ),
          ),
          child: const Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text(
                  'Welcome, 卞鑫源',
                  style: TextStyle(
                    color: Colors.white,
                    fontSize: 24,
                    fontWeight: FontWeight.bold,
                  ),
                ),
              ],
            ),
          ),
        ),
      );
    } catch (e) {
      print('Error in HomePage build method: $e');
      return Scaffold(
        body: Center(
          child: Text('An error occurred: $e'),
        ),
      );
    }
  }
}
